package com.itany.entity;

import java.util.ArrayList;

/**
 * @author 陈华旺
 * @version 1.0
 * @date 2023年11月20日 13:42
 * @Description TODO
 */
public class School {
    private String sname;
    private ArrayList<User> users;

    public School() {
        this.users = new ArrayList<>();
    }

    public void addUserItem(User u){
        this.users.add(u);
    }

    public ArrayList<User> getUsers() {
        return users;
    }

    public void setUsers(ArrayList<User> users) {
        this.users = users;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    @Override
    public String toString() {
        return "School{" +
                "sname='" + sname + '\'' +
                ", users=" + users +
                '}';
    }
}
